package com.aspose.cells;

import java.util.ArrayList;
import java.util.Iterator;

class zcdq {
   private zok a;
   private Workbook b;
   private com.aspose.cells.b.a.d.zh c;
   private zcel d;

   zcdq(zcel var1, zok var2) throws Exception {
      this.a = var2;
      this.d = var1;
      this.b = var2.a;
      this.c = new com.aspose.cells.b.a.d.zh();
   }

   void a(String var1, com.aspose.cells.a.f.zj var2) throws Exception {
      this.a();
      zcel.a(var1, this.c, var2);
      this.c.a();
      this.c = null;
   }

   private void a() throws Exception {
      zcdb var1 = new zcdb(278);
      var1.a(this.c);
      this.d();
      this.e();
      this.a(this.a.d);
      this.b(this.a.d);
      this.c(this.a.d);
      this.d(this.a.d);
      this.e(this.a.d);
      this.f();
      this.c();
      this.b();
      zcdb var2 = new zcdb(279);
      var2.a(this.c);
   }

   private void b() throws Exception {
      zcdb var1 = new zcdb(473);
      var1.a(this.c);
      zcdb var2 = new zcdb(565);
      var2.a(this.c);

      for(int var3 = 0; var3 < 64; ++var3) {
         Color var4 = this.b.getWorksheets().m().e(var3);
         zbzo var5 = new zbzo(var4.getA(), var4.getR(), var4.getG(), var4.getB());
         var5.a(this.c);
      }

      zcdb var6 = new zcdb(566);
      var6.a(this.c);
      zcdb var7 = new zcdb(474);
      var7.a(this.c);
   }

   private void c() throws Exception {
      TableStyleCollection var1 = this.b.getWorksheets().Z();
      if (var1 != null) {
         int var2 = var1.getCount();
         zbxx var3 = new zbxx(var1);
         var3.a(this.c);

         for(int var4 = 0; var4 < var2; ++var4) {
            TableStyle var5 = var1.get(var4);
            this.a(var5);
         }

         zcdb var6 = new zcdb(509);
         var6.a(this.c);
      }
   }

   private void a(TableStyle var1) throws Exception {
      zbxw var2 = new zbxw(var1);
      var2.a(this.c);
      int var3 = var1.getTableStyleElements().getCount();

      for(int var4 = 0; var4 < var3; ++var4) {
         TableStyleElement var5 = var1.getTableStyleElements().get(var4);
         zcea var6 = new zcea(var5);
         var6.a(this.c);
      }

      zcdb var7 = new zcdb(511);
      var7.a(this.c);
   }

   private void d() throws Exception {
      ArrayList var1 = this.b.getWorksheets().A();
      if (var1.size() != 0) {
         zcdb var2 = new zcdb(615, var1.size());
         var2.a(this.c);

         for(int var3 = 0; var3 < var1.size(); ++var3) {
            zxw var4 = (zxw)var1.get(var3);
            zccd var5 = new zccd();
            var5.a(var4.b(), var4.a());
            var5.a(this.c);
         }

         zcdb var6 = new zcdb(616);
         var6.a(this.c);
      }
   }

   private void e() throws Exception {
      ArrayList var1 = this.b.getWorksheets().z();
      if (var1.size() != 0) {
         zcdb var2 = new zcdb(611, var1.size());
         var2.a(this.c);
         Iterator var3 = var1.iterator();

         while(var3.hasNext()) {
            Font var4 = (Font)var3.next();
            zcce var5 = new zcce();
            var5.a(var4, this.b);
            var5.a(this.c);
         }

         zcdb var6 = new zcdb(612);
         var6.a(this.c);
      }
   }

   private void a(zof var1) throws Exception {
      ArrayList var2 = var1.a;
      if (var2.size() != 0) {
         zcdb var3 = new zcdb(603, var2.size());
         var3.a(this.c);
         Iterator var4 = var2.iterator();

         while(var4.hasNext()) {
            zon var5 = (zon)var4.next();
            zccb var6 = new zccb(this.b);
            var6.a(var5);
            var6.a(this.c);
         }

         zcdb var7 = new zcdb(604);
         var7.a(this.c);
      }
   }

   private void b(zof var1) throws Exception {
      ArrayList var2 = var1.b;
      if (var2.size() != 0) {
         zcdb var3 = new zcdb(613, var2.size());
         var3.a(this.c);
         Iterator var4 = var2.iterator();

         while(var4.hasNext()) {
            zno var5 = (zno)var4.next();
            zbyb var6 = new zbyb(this.b);
            var6.a(var5);
            var6.a(this.c);
         }

         zcdb var7 = new zcdb(614);
         var7.a(this.c);
      }
   }

   private void c(zof var1) throws Exception {
      ArrayList var2 = var1.c;
      if (var2.size() != 0) {
         zcdb var3 = new zcdb(626, var2.size());
         var3.a(this.c);

         for(int var4 = 0; var4 < var2.size(); ++var4) {
            zqp var5 = (zqp)var2.get(var4);
            zceo var6 = new zceo();
            var6.a(var5);
            var6.a(this.c);
         }

         zcdb var7 = new zcdb(627);
         var7.a(this.c);
      }
   }

   private void d(zof var1) throws Exception {
      ArrayList var2 = var1.d;
      if (var2.size() != 0) {
         zcdb var3 = new zcdb(617, var2.size());
         var3.a(this.c);

         for(int var4 = 0; var4 < var2.size(); ++var4) {
            zqp var5 = (zqp)var2.get(var4);
            zceo var6 = new zceo();
            var6.a(var5);
            var6.a(this.c);
         }

         zcdb var7 = new zcdb(618);
         var7.a(this.c);
      }
   }

   private void e(zof var1) throws Exception {
      ArrayList var2 = var1.e;
      if (var2.size() != 0) {
         zcdb var3 = new zcdb(619, var2.size());
         var3.a(this.c);

         for(int var4 = 0; var4 < var2.size(); ++var4) {
            znr var5 = (znr)var2.get(var4);
            zcdo var6 = new zcdo();
            var6.a(var5);
            var6.a(this.c);
         }

         zcdb var7 = new zcdb(620);
         var7.a(this.c);
      }
   }

   private void f() throws Exception {
      DxfCollection var1 = this.b.getWorksheets().getDxfs();
      int var2 = var1.getCount();
      if (var2 != 0) {
         zcdb var3 = new zcdb(505, var2);
         var3.a(this.c);

         for(int var4 = 0; var4 < var1.getCount(); ++var4) {
            Style var5 = var1.get(var4);
            zcbo var6 = new zcbo();
            var6.a(var5, false, this.b);
            var6.a(this.c);
         }

         zcdb var7 = new zcdb(506);
         var7.a(this.c);
      }
   }
}
